/*
 * @Description: 短信发送中
 * @Version: 2.0
 * @Author: Symbol_Yang
 * @Date: 2022-08-02 10:49:26
 * @LastEditors: Symbol_Yang
 * @LastEditTime: 2022-08-02 11:35:33
 */
const mongoose = require('mongoose')
const {Schema} = mongoose
//


var ShortMsgSendingSchema = new Schema({
    
    

    create_at: {type: Date, default: Date.now, index: -1},
    update_at: {type: Date, default: Date.now},
})

ShortMsgSendingSchema.pre('save', function (next) {
    let now = new Date()
    this.update_at = now
    next()
})
mongoose.model('short_msg_sending', ShortMsgSendingSchema)
module.exports = ShortMsgSendingSchema
